﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayLibertyPlayerControllerPlayerInputControllerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController);
			Utils.BeginObjectRegister(type, L, translator, 0, 2, 9, 9);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Repositioning", _m_Repositioning);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsMoving", _m_IsMoving);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "Active", _g_get_Active);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanMove", _g_get_CanMove);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanChangeWeapon", _g_get_CanChangeWeapon);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastDirection", _g_get_LastDirection);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "playInput", _g_get_playInput);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "animInput", _g_get_animInput);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "playerCamera", _g_get_playerCamera);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidBody", _g_get_rigidBody);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "aiEntity", _g_get_aiEntity);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "Active", _s_set_Active);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "CanMove", _s_set_CanMove);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "CanChangeWeapon", _s_set_CanChangeWeapon);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LastDirection", _s_set_LastDirection);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "playInput", _s_set_playInput);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "animInput", _s_set_animInput);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "playerCamera", _s_set_playerCamera);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "rigidBody", _s_set_rigidBody);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "aiEntity", _s_set_aiEntity);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Repositioning(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _turnSmoothing = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.Repositioning( _turnSmoothing );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsMoving(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.IsMoving(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Active(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Active);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CanMove(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CanMove);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CanChangeWeapon(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CanChangeWeapon);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LastDirection(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector3(L, gen_to_be_invoked.LastDirection);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_playInput(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.playInput);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_animInput(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.animInput);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_playerCamera(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.playerCamera);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_rigidBody(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.rigidBody);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_aiEntity(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.aiEntity);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Active(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Active = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_CanMove(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.CanMove = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_CanChangeWeapon(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.CanChangeWeapon = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LastDirection(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.LastDirection = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_playInput(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.playInput = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInput)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.PlayerController.PlayerInput));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_animInput(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.animInput = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerAnimInput)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.PlayerController.PlayerAnimInput));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_playerCamera(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.playerCamera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_rigidBody(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.rigidBody = (UnityEngine.Rigidbody)translator.GetObject(L, 2, typeof(UnityEngine.Rigidbody));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_aiEntity(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerInputController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.aiEntity = (Yoozoo.Gameplay.Liberty.AI.AIEntity)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.AI.AIEntity));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
